
import shopService from "@/serivce/shopService";
import userService from "@/serivce/userService";

const state = {
};
const getters = {

};
const actions = {
    //获取用户列表
    async GetUserList({ commit }, data) {
        try {
            let result = await userService.GetUserList(data);
            return result.data
        } catch (error) {
            console.log(error);
        }
    },
    async EditUserInfo({commit},data){
        try{
            let result=await userService.EditUserInfo(data);
            return result
        }catch(error){
            console.log(error);
        }
    },
    async DeleteUser({commit},data){
        try{
            console.log(data);
            let result=await userService.DeleteUser(data);
            return result
        }catch(error){
            console.log(error);
        }
    }


};
const mutations = {};

export default {
    namespaced: true,
    state,
    getters,
    mutations,
    actions,
};
